package Exercises;

import java.util.Scanner;

public class Task1 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		while(true){
			System.out.println("add N number: ");
		int n = sc.nextInt();
		
		int c = n;
		int number = 0;
		int sum = 0;
		
		for(int i = 1; i<=n; i++)
		{
		
			System.out.println("Please add a number");
			number = sc.nextInt();
		c = c-1;
		System.out.println("You have " + c + " numbers left");	
			
		sum +=number;
			
		}
		
		System.out.println("The sum of your numbers is: " + sum);
		
		}
	}

}
